package org.adream.account.dao;

import java.util.List;
import java.util.Map;

import org.adream.account.entity.IntegralHistoryEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface IntegralHistoryDao {
	
	int addIntegralHistory(IntegralHistoryEntity integralHistory);
	
	void deleteIntegralHistory(IntegralHistoryEntity integralHistory);
	
	int updateIntegralHistory(IntegralHistoryEntity integralHistory);
	
	List<IntegralHistoryEntity> queryIntegralHistoriesByTimeAndDr(@Param("startTime") String startTime, 
			@Param("endTime") String endTime, @Param("dr") Integer dr);
	
	/**
	 * 	按积分分类 查询 笔数、积分数量
	 * @return
	 */
	List<Map<String,Object>> searchIntegralInfo();

	List<Map<String, Object>> getIntegralHistoryByUid(@Param("uid")String uid);
}